package com.appwoo.txtws.util;

import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.drawable.Drawable;

class FastBitmapDrawable extends Drawable
{
  private Bitmap mBitmap;
  private int mHeight;
  private int mWidth;

  FastBitmapDrawable(Bitmap paramBitmap)
  {
    this.mBitmap = paramBitmap;
    if (paramBitmap != null)
    {
      this.mWidth = this.mBitmap.getWidth();
      this.mHeight = this.mBitmap.getHeight();
      return;
    }
    this.mHeight = 0;
    this.mWidth = 0;
  }

  public void draw(Canvas paramCanvas)
  {
    paramCanvas.drawBitmap(this.mBitmap, 0.0F, 0.0F, null);
  }

  public Bitmap getBitmap()
  {
    return this.mBitmap;
  }

  public int getIntrinsicHeight()
  {
    return this.mHeight;
  }

  public int getIntrinsicWidth()
  {
    return this.mWidth;
  }

  public int getMinimumHeight()
  {
    return this.mHeight;
  }

  public int getMinimumWidth()
  {
    return this.mWidth;
  }

  public int getOpacity()
  {
    return -3;
  }

  public void setAlpha(int paramInt)
  {
  }

  public void setBitmap(Bitmap paramBitmap)
  {
    this.mBitmap = paramBitmap;
    if (paramBitmap != null)
    {
      this.mWidth = this.mBitmap.getWidth();
      this.mHeight = this.mBitmap.getHeight();
      return;
    }
    this.mHeight = 0;
    this.mWidth = 0;
  }

  public void setColorFilter(ColorFilter paramColorFilter)
  {
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.appwoo.txtws.util.FastBitmapDrawable
 * JD-Core Version:    0.6.2
 */